{template header}
<h4 style="padding-left:20px;;"><i class="icon-search"></i>&nbsp;搜索</h4>
<form class="form-horizontal" method="post" action="">
    <div class="control-group search-group">
        <label class="control-label" >城市ID：</label>
        <div class="controls">
          <input type="text" placeholder="请输入城市ID" name="cityId" value="{$search['cityId']}">
        </div>
    </div>
    <div class="control-group search-group">
        <label class="control-label" >城市名称：</label>
        <div class="controls">
          <input type="text" placeholder="请输入城市名称" name="cityName" value="{$search['cityName']}">
        </div>
    </div>
    <div class="control-group search-group">
        <label class="control-label">省（直辖市）:</label>
        <div class="controls">
            <input type="text" placeholder="请输入省（直辖市）" name="provinceName" value="{$search['provinceName']}">
        </div>
    </div>
    <div class="control-group search-group">
        <div class="controls">
            <input type="hidden" value="search" name="s">
            <button class="btn" type="submit">提交</button>
        </div>
    </div>
</form>
<div class="bs-docs-example" style="clear:both;">
    <table class="table table-striped">
        <thead>
            <tr>
                <th>城市</th>
                <th>天气</th>
                <th>温度</th>
                <th>风</th>
                <th>湿度</th>
                <th>紫外线</th>
                <th>pm25</th>
                <th>明天天气</th>
                <th>后天天气</th>
                <th>大后天</th>
                <th>更新时间</th>
                <!-- <th>编辑</th> -->
            </tr>
        </thead>
        <tbody>
            {loop $cityWeatherData $k $v}
            <tr>
                <td>{$v['city_name']}</td>
                <td title="运动建议：{$v['advise']}">{$v['text']}</td>
                <td>{$v['temperature']}</td>
                <td>{$v['windInfo']}</td>
                <td>{$v['humidityInfo']}</td>
                <td>{$v['uvbrief']}</td>
                <td>{$v['pm25Info']}</td>
                <td>
                    <div>天气：{$v['future'][0]['text']}</div>
                    <div>温度：{$v['future'][0]['low']} - {$v['future'][0]['high']}</div>
                    <div>风力：{$v['future'][0]['wind']}</div>
                </td>
                <td>
                    <div>天气：{$v['future'][1]['text']}</div>
                    <div>温度：{$v['future'][1]['low']} - {$v['future'][1]['high']}</div>
                    <div>风力：{$v['future'][1]['wind']}</div>
                </td>
                <td>
                    <div>天气：{$v['future'][2]['text']}</div>
                    <div>温度：{$v['future'][2]['low']} - {$v['future'][2]['high']}</div>
                    <div>风力：{$v['future'][2]['wind']}</div>
                </td>
                <td>{$v['last_update']}</td>
                <!-- <td>
                    <a class="btn btn-primary" target="_blank" href="?c=admin&a=updateWerther&id=$v['city_id']">更新天气</a>
                </td> -->
            </tr>
            {/loop}
        </tbody>
    </table>
</div>
<div class="pagination">
    <ul>
        {$pageStr}
    </ul>
</div>

{template footer}
